#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include "svm.h"

#ifndef SVM_PREDICT
#define SVM_PREDICT

class svmpredict{

private:
	char* line;
	int max_line_len;
	struct svm_node *x;
	int max_nr_attr;

	struct svm_model* model;
	int predict_probability;
	int predict_rankresult;
private:
	double predict(FILE *input, FILE *output);
public:
	double DoPredict(char* inputFileName, char* outputFileName, char* modelFileName);
};
#endif